//
//  GQJWindow.m
//  TotalDemo
//
//  Created by gujian on 16/7/19.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "GQJWindow.h"

@implementation GQJWindow

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        //让此window始终在最顶端,但不会遮盖UIAlertView
        self.windowLevel = UIWindowLevelStatusBar + 100;
    }
    
    return self;
}

- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
    if ([_touchesDelegate window:self shouldReceiveTouchAtPoint:point]) {
        return  [super pointInside:point withEvent:event];
    }
    
    return NO;
}

@end
